Skip to main content

FlowPosition

Represents a workflow position in the system, encapsulating properties and methods to manage the workflow step logic.

Properties

NameDescription
TimeoutOptionsOptions defining the timeout behavior for the flow position.
CaptionThe caption dictionary representing localized captions for the flow object.
EnablePushNotificationGets or sets a value indicating whether push notification is enabled.
ShowInFlowHistorySpecifies if the position should be visible in the flow history.
HideApporoverInHistoryDetermines whether the approver should be hidden in the flow history.
TimeoutHourThe number of hours set for the timeout duration.
GeolocationOptionsGeolocation-related options for the flow position.
IdThe unique identifier of the flow position.
NotificationMessageGets the notification message associated with the message.
ValueTypeIndicates the type of the flow position, such as user or initiator.
EventsToCheckA list of event names to monitor for the flow position.
MailSubjectGets the mail subject associated with the message.
KeyA unique identifier for the workflow step.
AutoOpenApprovalOptionAutomatically opens approval options for the current position.
TimeoutMinuteThe number of minutes set for the timeout duration.
CodeThe code associated with the flow position, typically representing a username.
NameName for the workflow step.
EnableSendMailGets or sets a value indicating whether sending mail is enabled.
EventsA read-only list of events related to the flow position.
MailMessageGets the mail message associated with the message.
TimeoutDurationThe total timeout duration in a TimeSpan format.
IsCustomMailMessageGets or sets a value indicating whether the mail message is custom.
CustomMailMessageGets the custom mail message associated with the message.
MessageOptionsGets or sets the message options.
RequestIsNecessaryIfDocumentChangedRequires approval if the associated document has been modified.
EmailThe email address linked to the current flow position.
DescriptionA descriptive name for the flow position, often combining first and last names.
WorkflowCodeInstanceThe workflow code instance associated with the flow object.
DocumentsA list of documents associated with the flow position.
CachedDMObjectsThe cached document management objects related to the flow object.
WebNotificationOptionsGets or sets the web notification options.
NotificationCaptionGets the notification caption associated with the message.
AttachmentsGets the list of attachments associated with the message.
ForwardingOptionsOptions defining forwarding behavior for the flow position.
TypeCodeThe type code associated with the flow object.
DoNotSendRequestIfProcessedIndicates whether a request should be avoided if already processed.
CalculateUsingHolidaysSpecifies if holiday calculations should be included in timeouts.
TimeoutDayThe number of days set for the timeout duration.
CalculateUsingWorkingHoursSpecifies if working hours should be considered in timeout calculations.
NotificationOptionsGets or sets the push notification options.

Constructors

NameDescription
FlowPosition(name, workflowData, workflowCodeInstance)Constructor for the FlowPosition class. Initializes a new instance of the FlowPosition class.
FlowPosition(name,workflowData,workflowCodeInstance)Initializes a new instance of the FlowPosition class.
FlowPosition(name, workflowData, workflowCodeInstance)Initializes a new instance of the FlowPosition class with a name, workflow data, and workflow code instance.

Methods

NameDescription
GetUserInfo()Retrieves the user information for the flow position.
SendApprovalWebNotification(userInfo, requestItem)Sends a web notification for approval based on the provided process request and user information.
SetConstantPosition(id, code, description)Assigns a constant position to the flow position.
AddDocument(flowDocument, viewName, viewId, panelSize, allowEdit, showEvents)Adds a document to the flow position with optional view and display settings.
SetConstantUser(id, userName, fullName)Assigns a constant user to the flow position.
SetFromPosition(positionId)Assigns a position to the flow position based on the position ID.
SetUserFromFlowInitiator()Sets the flow position user from the flow initiator.
SendWebNotification(payloadType,userInfo,requestItem)Sends a web notification to a user.
SetUserFromFlowInitiatorManager(managerKey)Sets the flow position user from the flow initiator's manager.
SetFromUser(userId)Assigns a user to the flow position based on the user ID.
SetManagerUserAccordingToProfession(managerKey, professionName, targetPosition, sourcePosition, titleType, flowAssign)Sets a manager user for the flow position according to profession criteria.
GetUserInfoWithPositionId()Retrieves the user information along with the position ID for the flow position.
SendRequestTimedOutWebNotification(userInfo, requestItem)#import (Bimser.CSP.Workflow.Api.Steps.FlowGroup.SendRequestTimedOutWebNotification(UserInfo,ProcessRequestItem)) (shortDescription)
SetManagerUserFromUser(managerProfile, sourcePosition)Assigns a manager user to the flow position based on a manager profile.
SetVariablePosition(position)Assigns a variable position to the flow position using another flow position.
SetReferredUser(user)Sets a referred user for the flow position.
SetUserFromVariable(sourceVariable)Assigns a user to the flow position based on a variable.
SendMail(requestItem, userInfo)Sends an email notification based on the provided process request and user information.
SetUserFromLogonUser()Sets the flow position user from the currently logged-on user.
Initialize()Initializes the flow position with default settings.
SetUserFromImpersonatingUser()Sets the flow position user from the impersonating user.
SetConstantPosition(constantPosition)Assigns a constant position to the flow position using another flow position.
RemoveDocument(flowDocument)Removes a document from the flow position.
ToLiquid()Converts the flow position into a format compatible with Liquid templates.
AddAttachment(value,type)Adds an attachment to the mail message.
SetPositionFromVariable(sourceVariable, sourceProperty)Assigns a position to the flow position based on a variable and source property.
SetDepartmentManagerUserFromDepartment(sourceDepartment)Sets a department manager user for the flow position based on a department.
SendPushNotification(userInfo,requestItem)Sends a push notification to a user.

Events

NameDescription
OnAfterExecution(sender, args)Occurs after the execution of the workflow step.
OnBeforeExecution(sender, args)Occurs before the execution of the workflow step.